package com.xmkj.bearuser.member;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.common.mvp.BaseMvpActivity;
import com.common.mvp.BasePresenter;
import com.xmkj.bearuser.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MemberInfoDetailAcitivity extends BaseMvpActivity {
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.tv_state)
    TextView tvState;
    @BindView(R.id.tv_age)
    TextView tvAge;
    @BindView(R.id.tv_phone)
    TextView tvPhone;
    @BindView(R.id.tv_regeter_time)
    TextView tvRegeterTime;
    @BindView(R.id.tv_consume_count)
    TextView tvConsumeCount;
    @BindView(R.id.tv_order_count)
    TextView tvOrderCount;
    @BindView(R.id.tv_chuxu)
    TextView tvChuxu;
    @BindView(R.id.tv_jifen_can_used)
    TextView tvJifenCanUsed;
    @BindView(R.id.tv_consume_jian)
    TextView tvConsumeJian;
    @BindView(R.id.tv_consume_times)
    TextView tvConsumeTimes;
    @BindView(R.id.tv_share_person)
    TextView tvSharePerson;
    @BindView(R.id.tv_ke_price)
    TextView tvKePrice;
    @BindView(R.id.tv_jian_price)
    TextView tvJianPrice;
    @BindView(R.id.tv_rate)
    TextView tvRate;
    @BindView(R.id.tv_consume_date)
    TextView tvConsumeDate;
    @BindView(R.id.tv_consume_times_year)
    TextView tvConsumeTimesYear;
    @BindView(R.id.tv_compile)
    TextView tvCompile;
    @BindView(R.id.ll_order)
    LinearLayout llOrder;
    @BindView(R.id.ll_chuzhi)
    LinearLayout llChuzhi;
    @BindView(R.id.ll_jifen)
    LinearLayout llJifen;

    @Override
    protected BasePresenter createPresenterInstance() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_member_info;
    }

    @Override
    protected void onViewCreated() {

    }

    @Override
    protected void doLogicFunc() {
        attachClickListener(llChuzhi);
        attachClickListener(llJifen);
        attachClickListener(llOrder);
        attachClickListener(tvCompile);
    }

    @Override
    protected void onViewClicked(View view) {
        if(view.getId()==llChuzhi.getId()){
            Intent intent = new Intent(context,ChuJiOrderListActivity.class);
            intent.putExtra(ChuJiOrderListActivity.TYPE,2);
            startActivity(intent);
        }else if(llJifen.getId()==view.getId()){
            Intent intent = new Intent(context,ChuJiOrderListActivity.class);
            intent.putExtra(ChuJiOrderListActivity.TYPE,3);
            startActivity(intent);
        }else if(llOrder.getId()==view.getId()){
            Intent intent = new Intent(context,ChuJiOrderListActivity.class);
            intent.putExtra(ChuJiOrderListActivity.TYPE,1);
            startActivity(intent);
        }else if(tvCompile.getId()==view.getId()){
        Intent intent = new Intent(context,ModifyPersonInfoAcitivity.class);
        startActivity(intent);
        }
    }

    @Override
    protected void setNavigation() {
        setNavigationBack("会员信息详情");
    }


    @Override
    public void bindKnife() {
        ButterKnife.bind(this);
    }


}
